package com.fullertontech.framework.jdbc;

public class DataSourceUtils {
	private static final ThreadLocal<String> dataSourceNameThread=new ThreadLocal<>();
	
	public static void setDataSource(String dataSourceName) {
		dataSourceNameThread.set(dataSourceName);
	}
	
    public static String getDataSourceName() {  
        return dataSourceNameThread.get();  
    }  
  
    public static void clearDataSourceType() {  
    	dataSourceNameThread.remove();  
    }  
}
